package com.cc.zk;

/**
 * @author cc
 * @date 2022/8/25
 */
public interface ZkCallback<T> {

    /**
     * 回调
     *
     * @return {@link T}
     * @throws Exception 异常
     */
    T callback() throws Exception;

    /**
     * 获得锁路径
     *
     * @return {@link String}
     */
    String getLockPath();
}
